package com.asp.mapper;

import com.asp.annotation.AutoFill;
import com.asp.entity.Dialogue;
import com.asp.entity.Prompt;
import com.asp.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * author:          ndg
 * date:            2024/1/11
 */
@Mapper
public interface ConversationMapper {
    @AutoFill(OperationType.INSERT)
    void insert(Dialogue dialogue);

    List<Dialogue> selectByUserName(String userName);

    void deleteByUserName(String userName);

    List<Prompt> selectPrompt();

    Prompt selectPromptById(Integer cueWordId);
}
